package DBLayer;

import java.util.ArrayList;

import ModelLayer.Product;

public interface IFDBProduct {
    // get all Products
    public ArrayList<Product> getAllProducts(boolean retriveAssociation);
    //get one Product having the productID
    public Product findProduct(int productID, boolean retriveAssociation);
    //find one Product having the name
    public Product searchProductName( String name, boolean retriveAssociation);
    
    //public Product searchProductName( String Name, boolean retriveAssociation);
    
    //insert a new Product
    public int insertProduct(Product pro) throws Exception;
    //update information about an Product
    public int Product(Product pro);
    
	public Product searchProductID(int productID, boolean b);
	
	public int updateProduct(Product pro);
    
}
